package cn.hh.wechatkit.pojo.message.imp.event;

import cn.hh.wechatkit.pojo.message.Wx_EventTypeEnum;
import cn.hh.wechatkit.pojo.message.imp.Wx_BaseMsg;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Map;

/**
 * Created this one by HMH on 2017/7/12.
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public abstract class Wx_IEventMsg extends Wx_BaseMsg {

    private Wx_EventTypeEnum event;

    public Wx_IEventMsg(Map<String, String> map) {
        super(map);
        this.event = Wx_EventTypeEnum.fromString(map.get("Event"),"事件类型");

    }
}
